package com.demo.dao;

import com.demo.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ForumDao {
    //    获取总数
    Long getTotalCount(Map<String, Object> paramMap);
    //通过参数查询分页数据
    List<Map<String, Object>> getMapListByParam(Map<String, Object> paramMap);
    //新增数据
    void addItem(Map item);
    //更新数据
    void updateItem(Map item);

    List<Map> getAll();

    Map getById(@Param("id") String id);

}
